﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="orgInfo.aspx.cs" Inherits="pro_org_orgInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div >
        <div id="content">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
                SelectCommand="SELECT organization.organizationid, organization.creator, organization.organizationname, organization.address, organization.postcode, organization.phone, organization.createdtime, organization.contactperson, organization.contactemail, organization.description, users.realname FROM organization INNER JOIN users ON organization.organizationid = users.organizationid WHERE (users.username = @username)">
                <SelectParameters>
                    <asp:SessionParameter Name="username" SessionField="username" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
                DataKeyNames="organizationid" DataSourceID="SqlDataSource1" Width="100%" BorderStyle="None">
                <Fields>
                    <asp:BoundField DataField="organizationname" HeaderText="组织名称：" 
                        SortExpression="organizationname" HeaderStyle-HorizontalAlign="Right" HeaderStyle-Width="120px" HeaderStyle-ForeColor="#FF3300" />
                    <asp:BoundField DataField="realname" HeaderText="创建者：" 
                        SortExpression="realname" HeaderStyle-HorizontalAlign="Right" HeaderStyle-Width="120px"  HeaderStyle-ForeColor="#FF3300" />
                    <asp:BoundField DataField="createdtime" HeaderText="创建时间：" 
                        SortExpression="createdtime" HeaderStyle-HorizontalAlign="Right" HeaderStyle-Width="120px"  HeaderStyle-ForeColor="#FF3300" />
                    <asp:BoundField DataField="address" HeaderText="组织地址：" 
                        SortExpression="address" HeaderStyle-HorizontalAlign="Right" HeaderStyle-Width="120px"  HeaderStyle-ForeColor="#FF3300" />
                    <asp:BoundField DataField="postcode" HeaderText="邮编号码：" 
                        SortExpression="postcode"  HeaderStyle-HorizontalAlign="Right" HeaderStyle-Width="120px"  HeaderStyle-ForeColor="#FF3300"/>
                    <asp:BoundField DataField="phone" HeaderText="联系电话：" SortExpression="phone"  HeaderStyle-HorizontalAlign="Right" HeaderStyle-Width="120px"  HeaderStyle-ForeColor="#FF3300" />
                    <asp:BoundField DataField="contactperson" HeaderText="联系人：" 
                        SortExpression="contactperson"  HeaderStyle-HorizontalAlign="Right" HeaderStyle-Width="120px"  HeaderStyle-ForeColor="#FF3300" />
                    <asp:BoundField DataField="contactemail" HeaderText="联系人E-mail：" 
                        SortExpression="contactemail"  HeaderStyle-HorizontalAlign="Right" HeaderStyle-Width="120px"  HeaderStyle-ForeColor="#FF3300" />
                    <asp:BoundField DataField="description" HeaderText="组织描述：" 
                        SortExpression="description" HeaderStyle-HorizontalAlign="Right" HeaderStyle-Width="120px" HeaderStyle-ForeColor="#FF3300" />
                </Fields>
                <HeaderStyle HorizontalAlign="Right" />
            </asp:DetailsView>
        </div>
    </div>
    </form>
</body>
</html>
